package com.example.security.mapper;

import com.example.security.entity.SysRole;
import com.example.security.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yangss
 * @since 2022-10-14
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    SysUser selectByUserName(String username);

    int insertSysUser(String username ,String  password);

    List<SysRole> getRoleByUserId(String username);
}
